Level 4 - Context matters
Hints
- Take a look at how the
startTimer
function is called.
- When browsers parse tag attributes, they HTML-decode their values first.
<foo bar='z'>
is the same as<foo bar='z'
- Try entering a single quote (') and watch the error console.
Exploitation
Payload
We can provide the following payload to solve this problem:
1'); alert('1